#include <iostream>
#include "Sales_data.h"
using namespace std;
int main(){
	Sales_data this_year;
	cout << "Input the bookNo,units_sold and the price in this year " << endl;
	read(cin,this_year);
	cout << "this year's info: " << endl;
	print(cout,this_year) << endl;
	cin.get();
	Sales_data last_year;
	cout << "Input the bookNo,units_sold and the price in last year " << endl;
	read(cin,last_year);
	cout << "last year's info: " << endl;
	print(cout,last_year) << endl;
	cout << "add up two year:" << endl;
	print(cout, this_year.combine(last_year)) << endl;
	print(cout,add(this_year,last_year));
	return 0;
}
